package com.chinairi.mall.service.impl;

import com.chinairi.mall.service.modelobject.OCTAForSPMO;
import com.chinairi.mall.model.OrderCommodityTrackInformationYes;
import com.chinairi.mall.dao.OrderCommodityTrackInformationYesMapper;
import com.chinairi.mall.service.IOrderCommodityTrackInformationYesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 服务节点记录表（不报警的正常表） 服务实现类
 * </p>
 *
 * @author Webgasd
 * @since 2020-08-26
 */
@Service
public class OrderCommodityTrackInformationYesServiceImpl extends ServiceImpl<OrderCommodityTrackInformationYesMapper, OrderCommodityTrackInformationYes> implements IOrderCommodityTrackInformationYesService {
    @Autowired
    private OrderCommodityTrackInformationYesMapper orderCommodityTrackInformationYesMapper;

    /**
     * 手动更新报警表
     *
     * @param orderCommodityTrackInformationYes
     */
    @Override
    public void update(OrderCommodityTrackInformationYes orderCommodityTrackInformationYes) {
        orderCommodityTrackInformationYesMapper.updateById(orderCommodityTrackInformationYes);
    }

    /**
     * 接收服务商提供的节点完成时间来放进追踪和报警的部分。需要返回每个节点的完成时间和完成结果
     *
     * @param octaForSpmo
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void updateByServiceProviderRecord(OCTAForSPMO octaForSpmo) {

    }
}
